package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.DeskAnswer;

/**
 * 答案Service接口
 * 
 * @author ruoyi
 * @date 2023-06-07
 */
public interface IDeskAnswerService 
{
    /**
     * 查询答案
     * 
     * @param id 答案主键
     * @return 答案
     */
    public DeskAnswer selectDeskAnswerById(Long id);
    public DeskAnswer selectDeskAnswerByType(Long id);

    /**
     * 查询答案列表
     * 
     * @param deskAnswer 答案
     * @return 答案集合
     */
    public List<DeskAnswer> selectDeskAnswerList(DeskAnswer deskAnswer);

    /**
     * 新增答案
     * 
     * @param deskAnswer 答案
     * @return 结果
     */
    public int insertDeskAnswer(DeskAnswer deskAnswer);

    /**
     * 修改答案
     * 
     * @param deskAnswer 答案
     * @return 结果
     */
    public int updateDeskAnswer(DeskAnswer deskAnswer);

    /**
     * 批量删除答案
     * 
     * @param ids 需要删除的答案主键集合
     * @return 结果
     */
    public int deleteDeskAnswerByIds(Long[] ids);

    /**
     * 删除答案信息
     * 
     * @param id 答案主键
     * @return 结果
     */
    public int deleteDeskAnswerById(Long id);
}
